package com.bms.admin.base.user.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.bms.admin.base.user.entity.User;

/**
 * <p>
 * 系统用户 Mapper 接口
 * </p>
 *
 * @author xj
 * @since 2018-08-09
 */
public interface UserMapper extends BaseMapper<User> {
	
	List<String> queryAllPerms(Long userId);
	
	List<Long> queryAllMenuId(Long userId);
	
	List<User> queryByPage(Pagination page,@Param("ew") Wrapper<User> wrapper);
	
	User queryById(Long id);
	
}
